package cn.freeprogrammer.igen.data;

public class DaoData {
	private EntityData entityData;
	private String packageName;
	private String daoName;
	private String fullDaoName;
	private final static String DAO_NAME_SUFFIX = "Dao";

	public DaoData(EntityData entityData, String packageName) {
		this.entityData = entityData;
		this.packageName = packageName;
		
		this.daoName = entityData.getEntityName() + DAO_NAME_SUFFIX;
		this.fullDaoName = packageName + "." + this.daoName;
	}

	public EntityData getEntityData() {
		return entityData;
	}

	public void setEntityData(EntityData entityData) {
		this.entityData = entityData;
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getDaoName() {
		return daoName;
	}

	public void setDaoName(String daoName) {
		this.daoName = daoName;
	}

	public String getFullDaoName() {
		return fullDaoName;
	}

	public void setFullDaoName(String fullDaoName) {
		this.fullDaoName = fullDaoName;
	}
}
